package stringBuffer;

public class Demo {
	public static void main(String[] args){
		StringBuffer strbuf = new StringBuffer();
		strbuf.append("fuck").append("lyq");
		strbuf.delete(4, 6);
		strbuf.deleteCharAt(4);
		//toString可以把StringBuffer转换为String
		System.out.println(strbuf.toString());
	}
}
